﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.IO;

namespace Bankeren.Engine
{
    [DataContract]
    public class Avatar
    {
        #region Fields

        [DataMember]
        private string name;
        [DataMember]
        private byte[] imageBytes;

        #endregion

        #region Properties

        public string Name
        {
            get { return this.name; }
        }

        public byte[] ImageBytes
        {
            get { return this.imageBytes; }
        }

        #endregion

        #region Ctor

        public Avatar(string name, byte[] imageBytes)
        {
            this.name = name;
            this.imageBytes = imageBytes;
        }

        public Avatar(string name)
        {
            this.name = name;
            this.imageBytes = null;
        }

        #endregion

        #region Methods

        public override string ToString()
        {
            return this.name;
        }

        #endregion
    }
}
